from DButils import select


class LoanData:
    def get_data_admin(self):
        data = [
            ["lisi","123456","10000","10",30216.20,"admin","123456"]
        ]
        return data
    def get_data(self):
        sql_select = "select * from loan where userid = %s"
        param_select = [1]
        old = len(select(sql_select, param_select))
        data = [
            ["lisi","123456","10000","10",old+1],
            ["lisi", "123456", "100000000000000000", "10", old],
            ["lisi", "123456", "10", "10", old ],
            ["lisi", "123456", "100", "366", old],
            ["lisi", "123456", "100", "365", old]
        ]
        return data
    def get_data_nocard(self):
        data = [
            ["lisi5","123456","123456","10000","10","申请失败，请先绑定个人信息"]
        ]
        return data




